package org.mycub.server.requester.descriptors;

import org.geotools.data.Query;
import org.opengis.filter.Filter;

public class TramStationsDescription extends LayerDescription {
	
	private String typeName = "TB_ARRET_P";
	private String[] properties = new String[]{ "IDENT", "msGeometry", "ADRESSE", "CODEPOST", "LIGNEDES", "NOMARRET", "VILLE", "RESEAU"};
	
	public TramStationsDescription(){
		super();
		Filter filter = getFilterFactory().equals(getFilterFactory().property("RESEAU"), getFilterFactory().literal("TRAM"));
		setQuery(new Query( typeName, filter, properties ));
		
		setTimeToRefresh(30,0,0);
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
}
